00001 <?php 00002 /*--------------------------------------------------------------------------+ 00003 This file is part of eStudy. 00004 user/classes/class.userdataprinter.inc.php 00005 - Module group: Datenauszug 00006 - Description: Datenauszugs Controller 00007 - Version: $Id: userdata.php 1496 2009-01-20 18:08:42Z bkasteleiner $ 00008 - Author(s): Philipp Hoffmann <philipp.hoffmann@mni.fh-giessen.de> 00009 - Bjoern Kasteleiner <bjoern.kasteleiner@mni.fh-giessen.de> 00010 - Bjoern Rathjens <bjoern.rathjens@mni.fh-giessen.de> 00011 +---------------------------------------------------------------------------+ 00012 This program is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU General Public License 00014 as published by the Free Software Foundation; either version 2 00015 of the License, or any later version. 00016 +---------------------------------------------------------------------------+ 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 You should have received a copy of the GNU General Public License 00022 along with this program; if not, write to the Free Software 00023 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00024 +--------------------------------------------------------------------------*/ 00025 00026 define('PATH_TO_ROOT', '../'); 00027 if (! defined('USE_SSL')) define('USE_SSL', true); 00028 00029 require_once(PATH_TO_ROOT.'common/init.inc.php'); 00030 require_once(PATH_TO_ROOT.'common/header.inc.php'); 00031 require_once(PATH_TO_ROOT.'user/classes/class.userdata.inc.php'); 00032 require_once(PATH_TO_ROOT.'user/classes/class.userdataprinter.inc.php'); 00033 00034 $buffer = ''; // Puffer für die spätere Ausgabe im Template 00035 if(isset($_SESSION['userid'])) { 00036 $data = new UserData($_SESSION['userid']); 00037 $buffer = UserDataPrinter::printUserData($data); 00038 } else { 00039 $buffer = 'Aktion nicht gestattet! (UserID nicht in Session)'; 00040 } 00041 include(PATH_TO_ROOT.'user/templates/userdata.html'); 00042 00043 require_once(PATH_TO_ROOT.'common/footer.inc.php'); 00044 ?>
1.5.5